.center-flex{
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-grid{
    display: grid;
    justify-items: center;
    align-items: center;
}

.center-table{
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.center-translate{//父级元素要定位为relative
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-inline {
    text-align: center;
    line-height: 9.6rem;
    height: 9.6rem;
}


.center-position{//父级元素要定位为relative，要知道父级元素的宽高
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -75px;
    text-align: center;
    line-height: 100px;
}

.center-margin{//父级元素要定位为relative
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}